package com.glc.hms.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 菜单动作权限
 * </p>
 *
 * @author Santa
 * @since 2019-11-29
 */
@TableName("sys_menuaction")
public class SysMenuaction extends Model<SysMenuaction> {

    private static final long serialVersionUID = 1L;

    /**
     * 数据标识ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 菜单ID
     */
	private Integer menuId;
    /**
     * 动作ID
     */
	private Integer actionId;
    /**
     * 动作名称
     */
	private String actionName;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getMenuId() {
		return menuId;
	}

	public void setMenuId(Integer menuId) {
		this.menuId = menuId;
	}

	public Integer getActionId() {
		return actionId;
	}

	public void setActionId(Integer actionId) {
		this.actionId = actionId;
	}

	public String getActionName() {
		return actionName;
	}

	public void setActionName(String actionName) {
		this.actionName = actionName;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SysMenuaction{" +
			", id=" + id +
			", menuId=" + menuId +
			", actionId=" + actionId +
			", actionName=" + actionName +
			"}";
	}
}
